package com.dsbj.mp.icardservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约申请单
 * @author xsyuan
 *
 */
@Data
@TableName("VS_RESERVATION")
public class Reservation extends BaseEntity implements Serializable  {

	private static final long serialVersionUID = -285329852996903226L;

	@TableId(value = "id", type = IdType.UUID)
	private String id; // GUID主键

	////////状态：状态(待审核1 待入园区2 已入园区3 已入受访区4 已出受访区5 已出园区6 取消7 异常记录8/////////
	private String reservationno;//预约单号(年月日时分秒毫秒+2位)

    private String districtno;//受访区域编号

    private String visitor;//访客姓名

    private String idcardno;//访客身份证号码

    private String phone;//访客手机号码

	private byte[] idcardPhoto;//访客身份证照片

    private String visitorCompany;//访客单位

    private String employeenoReception;//接待人工号

    private String employeenameReception;//接待人

    private String deptno;//接待部门编号

    private String deptname;//接待部门

    private String employeenoAccompany;//陪同人工号

    private String employeenameAccompany;//陪同人

    private String visitingMatters;//来访事宜

    private Date forecastVisitingTime;//预计来访时间

    private Date forecastDepartureTime;//预计出厂时间

    private Date actualVisitingTime;//实际来访时间

    private Date actualDepartureTime;//实际出厂时间

    private String temporcardno;//临时卡号

    private Integer uploadFlag;//执行结果

    private String uploadResult;//执行结果描述

    private Date uploadTime;//执行时间

    private String remark;//备注

    private String guardInGate;//门岗警卫(进厂)

    private String guardOutGate;//门岗警卫(离厂)

    private String guardInWorkshop;//门岗警卫(进车间)

    private String guardOutWorkshop;//车间警卫(离开车间)

    private String workshopActualVisitingTime;//实际进入车间时间

    private String workshopActualDepartureTime;//实际离开车间时间

    private Integer isaccompany;//有陪同人 1  yes 0  no

    private Integer whatToBring;//携带物品的品牌型号及数量检查属实 1  yes 0  no

    private Integer isvisitor;//访客身份信息	1  yes 0  no

    private Integer isdangerousCargo;//未携带危险品（如打火机、火柴、火源等）1  yes 0  no

    private Integer electronicProduct;//未携带电子产品1  yes 0  no

    private Integer ispermit;//车间通行证已归还1  yes 0  no

    private Integer isworkClothes;//车间工作服无脏污无破损1  yes 0  no

    private Integer isdeptproduct;//无携带事业部产品或设备1  yes 0  no

    private Integer isreservationdays;//同申请天数是否有差异1  yes 0  no

    private String carryItems;//携带物品

    private String visitorPosition;//访客职务

    private String employeenoPhone;//接待人手机

    private Integer temporcardnoStatus;//卡状态卡状态sta（0未使用   1已使用）

    private String districtName;//区域名称

    private String idcardnoUrl;//身份照片URL

    private String companyno; //创建人所属公司的编号
    
	//自定义
	@TableField(exist = false)
    private String baseValue;//base64码

	@TableField(exist = false)
    private String quyu;//建筑

	@TableField(exist = false)
    private String CardNo;//读取身份证

	@TableField(exist = false)
    private Integer peopleNum;//日来访个状态人数

	@TableField(exist = false)
    private String statusName;//状态名

	@TableField(exist = false)
    private String percentage;//百分比

	@TableField(exist = false)
    private Integer quyuSum;

	@TableField(exist = false)
    private Integer sumPeople;

	@TableField(exist = false)
    private String bpmstatus;//审核流程

	@TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

	@TableField(exist = false)
    private String districtName2;

	@TableField(exist = false)
    private String yearAndMonth;

	@TableField(exist = false)
    private Integer yjrs;

	@TableField(exist = false)
	private Integer sjrs;

    @TableField(exist = false)
    private String photoBase64;

}
